<%@page import="itpenguin.common.Util"%>
<%@page import="itpenguin.entities.Series"%>
<%@page import="itpenguin.entities.Article"%>
<%@page import="java.util.List"%>
<%@page import="javax.jdo.Query"%>
<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<a href="/${series.contextName}/${series.id}">${series.title}</a>
<span>${series.description}</span>
<%
Series currentSr = (Series)request.getAttribute("series");
List<Series> results = Util.GetChildSheries(currentSr.getId());
pageContext.setAttribute("seriesList", results);
pageContext.setAttribute("hasChild", results.size() != 0);
%>
<c:if test="${hasChild}">
	<ul>
		<c:set var="currentSr" value="${series}" />
			<c:forEach var="child" items="${seriesList}">
				<c:set var="series" value="${child}" scope="request"/>
				<li>
					<jsp:include page="seriesOnly.jsp" />
				</li>
			</c:forEach>
	</ul>
</c:if>
   